<?php include("../includes/header-admin.php") ?>
<title>LazySwim</title>
</head>

<body>
<div id="page">
    <div id="page-top">
        <div id="page-bottom">
          <div id="header">
                <div id="header-info">
                    <h1>LAZYSWIM</h1>
                    <div class="description">Simplistic Swim System</div>
                </div>
				<!-- Header Goes Here -->
                <?php printHeader(); ?>
				<!-- Header Ends Here -->
                <div id="header-date">Today is <?php echo date('l, F jS, Y'); ?></div>
                <div id="header-cats">
				<!-- Welcome Message Starts Here -->
                    <ul>
					<?php include("../../includes/welcomeBar.php"); ?>
					</ul>
				<!-- Welcome Message Ends Here -->	
                </div>
            </div>
            <div id="main">
                <div id="sidebar">                 
                    <?php
					// include the corresponding navigation pages
                    include("../../includes/navigation.php");
					?>     
                </div>                     

            <!-- main body -->
 			<div class="featured-post"> 
			
				<div class="post-title"><h2><a href="index.php">Manage Store</a> - Change Store Location</h2></div>
				<div class="post-entry">
                
                <?php
                    if( isset($_POST['url']) ) {
                        $url = $_POST['url'];
                        mysql_query("UPDATE storeLocation SET url = '$url'") or die( mysql_error());			
						echo "<font color=\"blue\">Location Updated! </font><br><br>";
                    }
                    $sql = mysql_query("SELECT * FROM storeLocation");
                    $fileLocation = mysql_fetch_assoc($sql);         
                ?>
                
                <form name="myForm" action="changeStoreLocation.php" method="post">
                   URL: <input type="text" value="<?php echo $fileLocation[url]; ?>" name="url" size="75" maxlength="250"><br>
                   <input type="submit" value="Change">
                </form>
				<!-- end of main -->
				
				</div>
			</div>
            
            <div class="clear"></div>

            </div>
			<!-- Footer Goes Here -->
            <?php include("../../includes/footer.php"); ?>
			<!-- Footer Ends Here -->
        </div>
    </div>
</div>
</body>
</html>